package services

import "Sales_system/Dao"

func Getallgoods() (error,[]Dao.Goods, int64){
	err, goodsData, total := Dao.Getallgoods()
	return err, goodsData, total
}

func Deletegoods(id string) error {
	err := Dao.Deletegoods(id)
	return err
}

func Updategoods(goods Dao.Goods) error  {
	err := Dao.Updategoods(goods)
	return err
}

func Addgoods(goods Dao.Goods) error {
	err := Dao.Addgoods(goods)
	return err
}